A simple bound for sequential access in splay trees

نویسنده

  • Colm Ó Dúnlaing
چکیده

It is known that to traverse a binary tree in inorder, by repeated splay-to-root, uses O(n) rotations. Estimates vary from 15n to 4.5n in proofs of varying length and difficulty. We present a fairly easy estimate of 6n rotations. (1) The process under consideration is inorder traversal of a binary tree using repeated splay-to-root: n is the number of nodes in the tree. Call the operation of seeking the next node in inorder a ‘fetch’: the first fetch seeks the leftmost node in the tree, then brings it to the root by splaying; subsequently, each fetch operation seeks the leftmost child of the root’s right child and brings it to the root by splaying. In the illustration, first x0 is fetched, then y:

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On the sequential access theorem and deque conjecture for splay trees

We give a new, simple proof for the sequential access theorem for splay trees. For an n-node splay tree, our bound on the number of rotations is 4:5n, with a smaller constant than the bound of 10:8n concluded by Tarjan. We extend our proof to prove the deque conjecture for output-restricted deques. Our proofs provide additional insights into the workings of splay trees. c © 2004 Elsevier B.V. A...

متن کامل

Multi-Splay Trees

In this thesis, we introduce a new binary search tree data structure called multi-splay tree and prove that multi-splay trees have most of the useful properties different binary search trees (BSTs) have. First, we demonstrate a close variant of the splay tree access lemma [ST85] for multi-splay trees, a lemma that implies multi-splay trees have the O(log n) runtime property, the static finger p...

متن کامل

Thesis Proposal: Multi-Splay Trees

In this thesis, we introduce multi-splay trees (MSTs) and prove several results demonstrating that MSTs have most of the useful properties different BSTs have. First, we prove a close variant of the splay tree access lemma [ST85] for multi-splay trees, a lemma that implies MSTs have the O(log n) runtime property, the static finger property, and the static optimality property. Then, we extend th...

متن کامل

A Study on Splay Trees

We study the dynamic optimality conjecture, which predicts that splay trees are a form of universally efficient binary search tree, for any access sequence. We reduce this claim to a regular access bound, which seems plausible and might be easier to prove. This approach may be useful to establish dynamic optimality.

متن کامل

Dynamic Optimality and Multi-Splay Trees1

The Dynamic Optimality Conjecture [ST85] states that splay trees are competitive (with a constant competitive factor) among the class of all binary search tree (BST) algorithms. Despite 20 years of research this conjecture is still unresolved. Recently Demaine et al. [DHIP04] suggested searching for alternative algorithms which have small, but non-constant competitive factors. They proposed tan...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2008